import request from "./http";
//引入

/**
 * 搜索歌曲
 * @param{Number} keywords 歌曲keywords
 */
//导出
export function getSearchToll(keywords){
    return request({
        url:"/search",
        method:"get",
        params:keywords
    })
}
/**
 * 热搜列表
 * @param{Number} keywords 歌曲keywords
 */
//导出
export function getsearch(keywords){
    return request({
        url:"/search/hot/detail",
        method:"get",
        keywords
    })
}
//评论
export function getcomment(params) {
    return request({
        url: "/comment/new",
        method: "get",
        params
    });
}
//所有评论
export function getplaylist(params) {
    return request({
        url: "/comment/playlist",
        method: "get",
        params
    });
}
//发送评论
export function getcommentnew(params) {
    return request({
        url: "/comment",
        method: "get",
        params
    });
}
//获取动态评论
export function getevent(params) {
    return request({
        url: "/comment/event",
        method: "get",
        params
    });
}
//动态接口
export function getuest(uid) {
    return request({
        url: "/user/event",
        method: "get",
        params:uid
    });
}
//给评论点赞
export function getCommentLike(params) {
    return request({
        url: "/comment/like",
        method: "get",
        params,
    });
}
